# Contributor: fossdd <fossdd@pwned.life>
maintainer="fossdd <fossdd@pwned.life>"
pkgname=mod_dnssd
pkgver=0.6
pkgrel=0
pkgdesc="Zeroconf module for Apache"
url="https://0pointer.de/lennart/projects/mod_dnssd"
arch="all"
license="Apache-2.0"
depends="apache2"
makedepends="
	apache2-dev
	apr-dev
	avahi-dev
	"
source="http://0pointer.de/lennart/projects/mod_dnssd/mod_dnssd-$pkgver.tar.gz
	use-ap-unixd-setup-child.patch
	"
options="!check" # no tests

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-lynx
	make
}

check() {
	make check
}

package() {
	install -Dvm755 src/.libs/mod_dnssd.so -t "$pkgdir"/usr/lib/apache2/
}

sha512sums="
c3eacd2065f996ace76496b828a5be4b735225782c88ed0fba00c37ffed91af7c81cef755556968880e11e05fbaf65a4326728cb82abcad03ccaf925be1f29d3  mod_dnssd-0.6.tar.gz
4e4238a48bfe2a1ac293efc7bd7f639b1cbcacfcd456d0d41981dc38c1fe229adf52861fe9c4c111940ecf614339bd6285eede2eff5a51640adbf3786282c7bd  use-ap-unixd-setup-child.patch
"
